<template>
  <div class="about">
    <h1>This is an about page</h1>
    <h1>{{user.username}}/{{user.id}}</h1>
  </div>
</template>
<script>
export default {
  data() {
    return {
      user: {}
    }
  },
  created() {
    this.axios.get('http://localhost:8280/user/getById?id=2').then(res=>{
      console.log(res.data);
      this.user = res.data;
    })
  }
};
</script>